<%@include file="../header.jsp"%>
 
<!-- start content-outer ........................................................................................................................START -->
<div id="content-outer">
<!-- start content -->
<div id="content">

	<!--  start page-heading -->
	<div id="page-heading">
		<h1>Rekap Jadwal Final</h1>
	</div>
	<!-- end page-heading -->
    
    <!-- start search -->
    <table border="0" width="100%" cellpadding="0" cellspacing="0" id="content-table">
      <tr>
		<th rowspan="3" class="sized"><img src="images/shared/side_shadowleft.jpg" width="20" height="300" alt="" /></th>
		<th class="topleft"></th>
		<td id="tbl-border-top">&nbsp;</td>
		<th class="topright"></th>
		<th rowspan="3" class="sized"><img src="images/shared/side_shadowright.jpg" width="20" height="300" alt="" /></th>
	</tr>
	<tr>
		<td id="tbl-border-left"></td>
		<td>
		<!--  start content-table-inner ...................................................................... START -->
		<div id="content-table-inner">
			<div id="table-content">
                            <script>
                                function cekRekapPendaftarFinal()
                                {
                                if (document.rekapJadwalFinal.namaLab.value == "0")
                                {
                                alert("Nama Lab harus diisi !");
                                document.rekapJadwalFinal.namaLab.focus();
                                return false;
                                }
                                else if (document.rekapJadwalFinal.periode.value == "0")
                                {
                                alert("Periode harus diisi !");
                                document.rekapJadwalFinal.periode.focus();
                                return false;
                                }
                                else if (document.rekapJadwalFinal.format.value == "0")
                                {
                                alert("Format tampilan harus diisi !");
                                document.rekapJadwalFinal.format.focus();
                                return false;
                                }
                                }
                                </script>
                            <table border="0" width="100%" cellpadding="0" cellspacing="0" id="id-form">
                                <form name="rekapJadwalFinal" id="mainform" action="SidangTAController?page=rekapPendaftarFinal" onSubmit="return cekRekapPendaftarFinal()" method="post">
                                    <tr>
                                        <th width="0" valign="top" >Lab </th>
                                        <td width="40" align="center" valign="middle">:</td>
                                        <td width="230"><select name="namaLab" class="styledselect_form_1">
                                        <option value="0">-- PILIH LAB --</option>
                                        <c:forEach items="${listlab}" var="listlab">
                                        <option value="${listlab.namaLab}"
                                        <c:if test="${(listlab.namaLab == namaLab)}">selected="selected"</c:if>>${listlab.namaLab}</option>
                                        </c:forEach>
                                        </select></td>
                                        
                                        <td width="20"></td>
                                    
                                        <th width="0" valign="top" align="right">Periode</th>
                                        <td width="40" valign="middle" align="center">:</td>
                                        <td width="230">
                                            <select name="periode" class="styledselect_form_1">
                                            <option value="0">-- PILIH PERIODE --</option>
                                            <c:forEach items="${periodeYudisium}" var="periodeYudisium">
                                            <option value="${periodeYudisium.tglMulai},${periodeYudisium.tglAkhir},${periodeYudisium.periode}" 
                                            <c:if test='${(periodeYudisium.periode == periode)}'>selected="selected"</c:if>>${periodeYudisium.periode}</option>
                                            </c:forEach>
                                            </select>
                                        </td>
                                        
                                        <td width="20"></td>
                                        
                                        <th width="0" valign="top" align="right">Format </th>
                                        <td width="40" align="center" valign="middle">:</td>
                                        <td width="230"><select name="format" class="styledselect_form_1">
                                        <option value="0">-- PILIH FORMAT --</option>
                                        <option value="HTML" <c:if test="${format == 'HTML'}" >selected="selected"</c:if> >HTML</option>
                                        <option value="EXCEL" <c:if test="${format == 'EXCEL'}" >selected="selected"</c:if>>EXCEL</option>
                                        </select></td>
                                                                                
                                        <td></td>
                                        <td width="0"><input value="" class="form-tampilkan" type="submit" /></td>
                                    </tr>
                                </form>
                            </table>
                            <hr></hr>
                            <br></br>
                            <!--  start product-table ..................................................................................... -->

                            <table border="0" width="100%" cellpadding="0" cellspacing="0" id="product-table">
                                
                            
                            <tr>
                                <th width="50" class="table-header-repeat line-left"><a href="">No</a></th>
                                <th width="100" class="table-header-repeat line-left "><a href="">NRP</a></th>
                                <th width="100" class="table-header-repeat line-left "><a href="">Tanggal</a></th>
                                <th width="100" class="table-header-repeat line-left "><a href="">Waktu</a></th>
                                <th width="100" class="table-header-repeat line-left "><a href="">Tempat</a></th>
                                <th width="180" class="table-header-repeat line-left "><a href="">Pembimbing 1</a></th>
                                <th width="180" class="table-header-repeat line-left "><a href="">Pembimbing 2</a></th>
                                <th width="180" class="table-header-repeat line-left "><a href="">Penguji 1</a></th>
                                <th width="180" class="table-header-repeat line-left "><a href="">Penguji 2</a></th>
                            </tr>
                            <% int i = 1;%>
                            <c:if test="${namaLab != null}">
                            <c:if test="${empty rekapJadwalFinal}">
                                    <tr>
                                        <td colspan="9" align="center" >Maaf, Data rekap Tidak Ditemukan</td>
                                    </tr>
                            </c:if>
                            <c:forEach items="${rekapJadwalFinal}" var="rekapJadwalFinal" >
                            <tr>            
                                <td align="center"><% out.print(i); i++; %></td>
                                <td>${rekapJadwalFinal.ta.user.idUser}</td>
                                <td>${rekapJadwalFinal.tglSidang}</td>
                                <td>${rekapJadwalFinal.wktSidang}</td>
                                <td>${rekapJadwalFinal.tempatSidang}</td>
                                <td>
                                    <c:forEach items="${namaDosen}" var="namaDosen">
                                    <c:if test="${(namaDosen.user.idUser == rekapJadwalFinal.ta.pembimbing1)}">
                                        ${namaDosen.user.namaUser}
                                    </c:if>
                                    </c:forEach>
                                </td>
                                <td>
                                    <c:if test="${(rekapJadwalFinal.ta.pembimbing2 != '0')}">
                                    <c:forEach items="${namaDosen}" var="namaDosen">
                                    <c:if test="${(namaDosen.user.idUser == rekapJadwalFinal.ta.pembimbing2)}">
                                    ${namaDosen.user.namaUser}
                                    </c:if>
                                    </c:forEach>
                                    </c:if>
                                    <c:if test="${(rekapJadwalFinal.ta.pembimbing2 != null)}">${rekapJadwalFinal.ta.pembimbingLuar}</c:if>
                                </td>
                                <td>
                                    <c:forEach items="${namaDosen}" var="namaDosen">
                                    <c:if test="${(namaDosen.user.idUser == rekapJadwalFinal.penguji1)}">
                                        ${namaDosen.user.namaUser}
                                    </c:if>
                                    </c:forEach>
                                </td>
                                <td>
                                    <c:forEach items="${namaDosen}" var="namaDosen">
                                    <c:if test="${(namaDosen.user.idUser == rekapJadwalFinal.penguji2)}">
                                        ${namaDosen.user.namaUser}
                                    </c:if>
                                    </c:forEach>
                                </td>
                            </tr>
                            </c:forEach>
                            </c:if>
                            </table>
				<!--  end product-table................................... --> 
				</form>
			</div>
			<!--  end content-table  -->
		
			<!--  start actions-box ............................................... --><!-- end actions-box........... -->
			
			<!--  start paging..................................................... -->
			<!--  end paging................ -->			
			<div class="clear"></div>
		 
		</div>
		<!--  end content-table-inner ............................................END  -->
		</td>
		<td id="tbl-border-right"></td>
	</tr>
	<tr>
		<th class="sized bottomleft"></th>
		<td id="tbl-border-bottom">&nbsp;</td>
		<th class="sized bottomright"></th>
	</tr>
	</table>
	<div class="clear">&nbsp;</div>

</div>
<!--  end content -->
<div class="clear">&nbsp;</div>
</div>
<!--  end content-outer........................................................END -->

<div class="clear">&nbsp;</div>
    
<!-- start footer -->         
<div id="footer">
	<!--  start footer-left -->
	<div id="footer-left">
	
	Admin Skin &copy; Copyright Internet Dreams Ltd. <span id="spanYear"></span> <a href="">www.netdreams.co.uk</a>. All rights reserved.</div>
	<!--  end footer-left -->
	<div class="clear">&nbsp;</div>
</div>
<!-- end footer -->
 
</body>
</html>